﻿using System;
using System.Runtime.Serialization;
using ARS.Control.Attributes;

namespace ARS.Control.Custom.DataPaging.Attributes
{
    /// <summary>
    /// basicmessage_ruleralation:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [DataContract]
    [Serializable]
    public class DbSelect:DbSelectAll
    {
        public DbSelect()
        {
            OrderType = true;
            PageIndex = 1;
            PageSize = 10;

            
        }




        /// <summary>
        /// 排序方式
        /// </summary>
        [DataMember(IsRequired = false)]
        public bool OrderType
        {
            get;
            set;
        }

        /// <summary>
        /// 查询页码
        /// </summary>
        [DataMember(IsRequired = false)]
        public int PageIndex
        {
            get;
            set;
        }
        /// <summary>
        /// 每页显示条数
        /// </summary>
        [DataMember(IsRequired = false)]
        public int PageSize
        {
            get;
            set;
        }



        /// <summary>
        /// 结果统计
        /// </summary>
        [DataMember(IsRequired = false)]
        public int ResultCount
        {
            get;
            set;
        }
        /// <summary>
        /// 结果总页码
        /// </summary>
        [DataMember(IsRequired = false)]
        public int ResultPages
        {
            get;
            set;
        }
        /// <summary>
        /// 联合查询条件
        /// </summary>
        [DataMember(IsRequired = false)]
        public string UniteWhere
        {
            get;
            set;
        }
    }
}
